package com.shida.dao;

import com.shida.entity.Books;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BooksMapper {
    /**
     *功能描述: 查询所有书籍
     * @return java.util.List<com.shida.entity.Books>
     */
    List<Books> queryAllBooks();

    //增加一个Book
    int addBook(Books book);

    //根据id删除一个Book
    int deleteBookById(int id);

    //更新Book
    int updateBook(Books books);

    //根据id查询,返回一个Book
    Books queryBookById(int id);

}